package com.bawei.es.service;

import com.bawei.common.core.domain.R;
import com.bawei.system.domain.vo.EsDocDelVo;
import com.bawei.system.domain.vo.EsIndexVo;
import org.elasticsearch.common.settings.Settings;

import java.util.List;
import java.util.Map;

public interface EsIndexService {
    R<Boolean> indexCreate(String indexName);

    R<Boolean> indexExit(String indexName);

    R<Boolean> indexDelete(String indexName);

    R<Boolean> indexCreateWithMapping(EsIndexVo esIndexVo);

    R<Map> indexGetMapping(String indexName);

    Map<String, Object> getIndexDetails(String indexName);

    boolean addFieldToMapping(EsIndexVo esIndexVo);


    R indexDel(EsDocDelVo esDocDelVo);

    List<String> getAllIndex();


}
